///**
///* @author hrongyong
///* @date   2/26/21
///* @email hrongyong@gmail.com
///* Description: 虽然两个model 都是一样的,但是直方图限制了不能有负数，折线图可以有
///               只用于获取图表的最大值、最小值和偏移值
///*/
///基本图表 ，可为null
class BaseHistogramChartModel {
  ///第一直方
  double first;

  ///第二直方图
  double second;

  ///第三直方
  double third;

  BaseHistogramChartModel({this.first = 0.0, this.second = 0.0, this.third = 0.0}) {
    if (this.first < 0) {
      this.first = 0.0;
    }

    if (this.second < 0) {
      this.second = 0.0;
    }
    if (this.third < 0) {
      this.third = 0.0;
    }
  }
}

///基本折线图表 默认name是比填的，其他的可为null
class BaseLineChartModel {
  ///第一折线
  double first;

  ///第二折线
  double second;

  ///第三折线
  double third;

  BaseLineChartModel({this.first = 0.0, this.second = 0.0, this.third = 0.0}) {
    if (this.first == null) {
      this.first = 0.0;
    }

    if (this.second == null) {
      this.second = 0.0;
    }
    if (this.third == null) {
      this.third = 0.0;
    }
  }
}
